package com.wit.witmg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author bob
 * @since 2024-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TTool对象", description="工装模具表")
public class TTool implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "模具编号")
    private String bn;

    @ApiModelProperty(value = "模具名称")
    private String na;

    @ApiModelProperty(value = "类型标签（采用“大类,小类,t特征”的格式方便筛选）")
    private String tp;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "模具成本  单位分")
    private Long ecost;

    @ApiModelProperty(value = "可用次数(次折旧=模具成本ecost/depr）")
    private Integer depr;

    @ApiModelProperty(value = "投用日期")
    private Date udate;

    @ApiModelProperty(value = "报废日期（默认空缺，若有则表示已报废）")
    private Date edate;

    @ApiModelProperty(value = "累计使用次数(产品入库后添加)")
    private Integer tms;

    @ApiModelProperty(value = "归属部门编号")
    private String oid;

    @ApiModelProperty(value = "belong")
    private String belong;

    private Date date;

    private Long ptm;//一模出量
    private Long qt;//工装数量
    private Long guid;//录入人

}
